package com.coo1.onlineorder.server.data;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NullValue;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Unique;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MSTMENU implements java.io.Serializable{

	@Unique
    @PrimaryKey
    @Persistent
    private String ITEMID;

    @Persistent
    private String ITEMNAME1;
    
    @Persistent
    private String ITEMNAME2;
    
    @Persistent
    private String ITEMNAME3;
    
    @Persistent
    private String ITEMTYPE;
    
    @Persistent
    private Boolean ADVICE;
    
    @Persistent
    private int PRICE;

    @Persistent
    private String PICURL;
    
    @Persistent
    private String DESCRIPTION;
    
    @Persistent
    private long ORDERCOUNT;
    
    public MSTMENU(String itemid, String itemname1, String itemname2, String itemname3, 
    		String itemtype,Boolean advice,
    		int price,String picurl,String description, long ordercount) {
        this.ITEMID = itemid;
        this.ITEMNAME1 = itemname1;
        this.setITEMNAME2(itemname2);
        this.setITEMNAME3(itemname3);
        this.ITEMTYPE = itemtype;
        this.setADVICE(advice);
        this.PRICE = price;
        this.PICURL = picurl;
        this.DESCRIPTION = description;
        this.ORDERCOUNT = ordercount;
    }

    // Accessors for the fields.  JDO doesn't use these, but your application does.

    public String getItemid() {
        return ITEMID;
    } 
    
    public void SetItemid(String itemid) {
    	this.ITEMID = itemid;
    } 
    
    public void setITEMNAME1(String iTEMNAME1) {
		ITEMNAME1 = iTEMNAME1;
	}

	public String getITEMNAME1() {
		return ITEMNAME1;
	}

	public void setITEMNAME2(String iTEMNAME2) {
		ITEMNAME2 = iTEMNAME2;
	}

	public String getITEMNAME2() {
		return ITEMNAME2;
	}

	public void setITEMNAME3(String iTEMNAME3) {
		ITEMNAME3 = iTEMNAME3;
	}

	public String getITEMNAME3() {
		return ITEMNAME3;
	}
	
    public String getItemtype() {
        return ITEMTYPE;
    } 
    
	public void setItemtype(String itemtype) {
    	this.ITEMTYPE = itemtype;
    } 
    
    public void setADVICE(Boolean ADVICE) {
    	this.ADVICE = ADVICE;
	}

	public Boolean getADVICE() {
		return ADVICE;
	}

	public int getPrice() {
        return PRICE;
    } 
    
    public void setPrice(int price) {
    	this.PRICE = price;
    } 
    
    public String getPicurl() {
        return PICURL;
    } 
    
    public void setPicurl(String picurl) {
    	this.PICURL = picurl;
    } 

    public String getDescription() {
        return DESCRIPTION;
    } 
    
    public void setDescription(String description) {
    	this.DESCRIPTION = description;
    } 

    public long getOrdercount() {
        return ORDERCOUNT;
    } 
    
    public void setOrdercount(long ordercount) {
    	this.ORDERCOUNT = ordercount;
    } 


 }